[Top] [Prev] [Next] [Bottom] [Contents]

SaFormCheckBox

Prints an HTML checkbox form element to an HTML stream.

Synopsis

#include "SaRnHtml.h"
int SaFormCheckBox(char* ename, 
							char* evalue, 
							int checked, 
							char* elabel);

Arguments

ename
A string specifying the name of the checkbox element. This string is converted to an HTML-compatible string. If ename is NULL, an empty string is used as the element name.
evalue
A string specifying the value of the checkbox element. This string is converted to an HTML-compatible string. If evalue is NULL or an empty string, the value "on" is used.
checked
An integer flag specifying whether the element should be initially marked as selected. A non-zero value adds the HTML fragment:
CHECKED 
to the HTML stream. Otherwise the fragment is suppressed.
elabel
A string specifying the label of the checkbox element. This string is converted to an HTML-compatible string. If elabel is NULL, an empty string is used.

Return Values

Returns an integer with a value of 0.

Description

Prints an HTML checkbox form element to an HTML stream.

Example

The code fragment:

SaFormCheckBox("OS", "1", 1, "MAC");
will write:

<INPUT TYPE="checkbox" NAME="OS" VALUE="1" CHECKED "MAC" 
to the output stream.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.